﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.Proxy.BuyTicket
{
    class Program
    {
        static void Main(string[] args)
        {
            #region 在售票中心买票
            //{
            //    TicketCentre ticketCentre = new TicketCentre();
            //    ticketCentre.BuyTicket();
            //    ticketCentre.QueryTicket();
            //}
            #endregion

            #region 在代理买票
            {
                ProxyTicket proxyTicket = new ProxyTicket();
                proxyTicket.BuyTicket();
                proxyTicket.QueryTicket();
            }
            #endregion

            Console.ReadKey();
        }
    }
}
